<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-number" class="form-control" name="row[number]" type="text" value="{$row.number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Region_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-region_id" data-rule="required" data-source="park/region/index" class="form-control selectpage" name="row[region_id]" type="text" value="{$row.region_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hub_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hub_id" data-rule="required" data-source="park/hub/index" class="form-control selectpage" name="row[hub_id]" type="text" value="{$row.hub_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Device_ip')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_ip" class="form-control" name="row[device_ip]" type="text" value="{$row.device_ip|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Device_mac')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_mac" class="form-control" name="row[device_mac]" type="text" value="{$row.device_mac|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Device_imei')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_imei" class="form-control" name="row[device_imei]" type="text" value="{$row.device_imei|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Device_iccid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_iccid" class="form-control" name="row[device_iccid]" type="text" value="{$row.device_iccid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Device_info_json')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <dl class="fieldlist" data-name="row[device_info_json]">
                <dd>
                    <ins>{:__('Key')}</ins>
                    <ins>{:__('Value')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[device_info_json]" class="form-control hide" cols="30" rows="5">{$row.device_info_json|htmlentities}</textarea>
            </dl>


        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lock_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="lockStatusList" item="vo"}
            <label for="row[lock_status]-{$key}"><input id="row[lock_status]-{$key}" name="row[lock_status]" type="radio" value="{$key}" {in name="key" value="$row.lock_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="carStatusList" item="vo"}
            <label for="row[car_status]-{$key}"><input id="row[car_status]-{$key}" name="row[car_status]" type="radio" value="{$key}" {in name="key" value="$row.car_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Online_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="onlineStatusList" item="vo"}
            <label for="row[online_status]-{$key}"><input id="row[online_status]-{$key}" name="row[online_status]" type="radio" value="{$key}" {in name="key" value="$row.online_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_charge_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_charge_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_charge_time]" type="text" value="{:$row.start_charge_time?datetime($row.start_charge_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_charge_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_charge_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_charge_time]" type="text" value="{:$row.end_charge_time?datetime($row.end_charge_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
